import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'

// 引入全局样式
import './assets/css/global.scss'
// 引入字体样式
import './assets/font/iconfont.css'

// 配置请求的跟路径
axios.defaults.baseURL = 'http://127.0.0.1:8888/api/'

Vue.prototype.$http = axios
// 将全局的echarts对象挂载到Vue的原型对象上
// 别的组件中 this.$echarts
Vue.prototype.$echarts = window.echarts
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
